package com.trace.pplos.load.common;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Project Name:pplos
 * Package Name:com.trace.pplos.load.common
 *
 * @author：zhouqilin
 * @date：2017/8/6 11:53
 * Copyright (c) 2017,jv.com.cn All Rights Reserved.
 */
public class Constant {

    public static final boolean isLinux = FileUtils.isLinux();

    public static final String TMP         = ".tmp";
    public static final long appId        = 1251894384;
    public static final String region      = "gz";
    public static final String secretId    = "AKIDlR0TCoLbgbiWfghGO6iDXjzOjCXwgWFo";
    public static final String secretKey   = "4TkaI41Gf5V1QxLoCAQbr6S2hE1nkXgo";
    public static final String bucketName  = "trace0727";
    public static final String referer      = "trace0727-1251894384.cosgz.myqcloud.com";

    public static final String ROOT_PATH = "/gather/";

    public static final String TARGET_PATH = "E:/pplos/load/gather/";

    public static final String LINUX_TARGET_PATH = "/home/upload/load/gather/";

    public static String getRootPath(){
        return isLinux ? ROOT_PATH : ROOT_PATH;
    }

    public static String getTargetPath(){
        return isLinux ? LINUX_TARGET_PATH : TARGET_PATH;
    }
}
